﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.master" AutoEventWireup="True"
    Inherits="ETRANPORT.Web.Forms.DanhMuc.NhanVien" CodeBehind="NhanVien.aspx.cs" %>
    
<%@ Import Namespace="ETRANPORT.Web.Common"%>
<%@ Import Namespace="EBAYVN.Util" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="ETRANPORT.Controls" Namespace="ETRANPORT.Controls" TagPrefix="ETRANPORT" %>

<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server" />
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <asp:UpdatePanel ID="upnlInfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>    
                            <td class="crmcell right">Mã nhân viên</td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <asp:TextBox ID="txtMANV" runat="server" Width="100px" MaxLength="200" TabIndex="1" />
                                </div>
                            </td>                            
                        </tr>
                        <tr>    
                            <td class="crmcell right">Tên nhân viên</td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <asp:TextBox ID="txtHOTEN" runat="server" Width="250px" MaxLength="200" TabIndex="2" />
                                </div>
                            </td>
                        </tr>
                        <tr>    
                            <td class="crmcell right">Chứng minh nhân dân</td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <asp:TextBox ID="txtCMND" runat="server" Width="250px" MaxLength="200" TabIndex="2" />
                                </div>
                            </td>
                        </tr>
                        <tr>    
                            <td class="crmcell right">Email</td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="250px" MaxLength="200" TabIndex="2" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Công việc</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:DropDownList ID="ddlCONGVIEC" Width="262px" runat="server" TabIndex="5" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Ngày sinh</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtNGAYSINH" runat="server" Width="100px" MaxLength="200" TabIndex="6" />
                                </div>
                                <div class="left">
                                    <asp:ImageButton runat="Server" ID="imgNGAYSINH" ImageUrl="~/content/images/icons/calendar.png"
                                        AlternateText="Click to show calendar" TabIndex="7" />
                                </div>
                                <ajaxToolkit:CalendarExtender ID="ceNgayTao" runat="server" TargetControlID="txtNGAYSINH"
                                    PopupButtonID="imgNGAYSINH" TodaysDateFormat="dd/MM/yyyy" Format="dd/MM/yyyy" />
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Địa chỉ</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtDIACHI" runat="server" Width="250px" MaxLength="200" TabIndex="8" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Điện thoại</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtDIENTHOAI" runat="server" Width="250px" MaxLength="200" TabIndex="9" />
                                </div>
                            </td>
                        </tr>
                        <tr>    
                            <td class="crmcell right"></td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <ETRANPORT:Button ID="btnFilter" OnClick="btnFilter_Click" UseSubmitBehavior="false" runat="server" CssClass="filter" Text="" TabIndex="10" />
                                </div> 
                                <div class="left">
                                    <ETRANPORT:Button ID="btnSave" OnClick="btnSave_Click" UseSubmitBehavior="false" runat="server" CssClass="save" Text="" TabIndex="11" />
                                </div>   
                                <div class="left">
                                    <ETRANPORT:Button ID="btnDelete" runat="server" CssClass="delete" UseSubmitBehavior="false" OnClick="btnDelete_Click" TabIndex="12" />
                                </div>
                                <div class="left">
                                    <ETRANPORT:Button ID="btnCancel" runat="server" CssClass="cancel" UseSubmitBehavior="false" OnClick="btnCancel_Click" TabIndex="13" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:UpdatePanel ID="upnlGrid" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <ETRANPORT:Grid ID="gvList" runat="server" UseCustomPager="true" PageSize="50" OnRowCommand="gvList_RowCommand">
                    <PagerSettings FirstPageText="nhân viên" PageButtonCount="2" />
                    <Columns>
                        <asp:TemplateField HeaderStyle-CssClass="checkbox">
                            <HeaderTemplate>
                                <input id="chkAllTop" title="Chọn hết / Bỏ chọn hết" name="chkAllTop" type="checkbox"
                                    onclick="CheckAllItems(this);" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="Id" runat="server" type="hidden" value='<%# Eval("MANV") %>' />
                                <input name="listIds" type="checkbox" value='<%# Eval("MANV") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã nhân viên" HeaderStyle-Width="18%">
                            <ItemTemplate>
                                <ETRANPORT:LinkButton ID="lnkBtnID" runat="server" CommandArgument='<%# Eval("MANV") %>'
                                                   CommandName="EditItem" CssClass="link" Text='<%# Eval("MANV") %>' />
                            </ItemTemplate>
                            <ItemStyle Font-Bold="True" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="HOTEN" HeaderText="Tên nhân viên" HeaderStyle-Width="40%" />
                         <asp:BoundField DataField="CMND" HeaderText="Chứng minh" HeaderStyle-Width="150px" />
                         <asp:BoundField DataField="DIACHI" HeaderText="Địa chỉ" HeaderStyle-Width="30%" />
                         <asp:BoundField DataField="EMAIL" HeaderText="Email" HeaderStyle-Width="150px" />
                        <asp:TemplateField HeaderText="Công việc" HeaderStyle-Width="40%">
                            <ItemTemplate>
                                <%# Eval("CONGVIEC.TENCV") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </ETRANPORT:Grid>
            </div>
        </ContentTemplate>
	</asp:UpdatePanel>
</asp:Content>
